package com.qf.service.impl;

import com.qf.mapper.StuMapper;
import com.qf.pojo.Stu;
import com.qf.service.StuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * 以梦为马，以汗为泉，不忘初心，不负韶华
 *
 * @author
 * @version 1.0
 * @data 2025/2/17 17:35
 */
@Service
public class StuServiceImpl implements StuService {

    @Resource
    private StuMapper stuMapper;
    @Override
    public Stu findByid(Integer id) {
        return stuMapper.findByid(id);
    }

    @Override
    public List findAllStu() {
        return stuMapper.findAllStu();
    }

    @Override
    public List<Stu> findByKeyword(HashMap<String, Object> map) {
        return stuMapper.findByKeyword(map);
    }

    @Override
    public void add(Stu stu) {
          stuMapper.add(stu);
    }

    @Override
    public void edit(Stu stu) {
        stuMapper.edit(stu);
    }

    @Override
    public void delete(Integer id) {
        stuMapper.delete(id);
    }
}
